package org.jeecg.modules.demo.applyapartemployee.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

@Data
public class ZhzfApplyApartEmployeeVo {

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**外键，职工*/
    @Excel(name = "外键，职工", width = 15)
    @ApiModelProperty(value = "外键，职工")
    private String employeeId;
    /**外键，用户*/
    @Excel(name = "外键，用户", width = 15)
    @ApiModelProperty(value = "外键，用户")
    private String userId;
    /**外键，职工所属单位*/
    @Excel(name = "外键，职工所属单位", width = 15)
    @ApiModelProperty(value = "外键，职工所属单位")
    private String apartId;
    /**外键，框定单位*/
    @Excel(name = "外键，框定单位", width = 15)
    @ApiModelProperty(value = "外键，框定单位")
    private String determineApartId;
    /**外键，核定单位*/
    @Excel(name = "外键，核定单位", width = 15)
    @ApiModelProperty(value = "外键，核定单位")
    private String checkApartId;
    /**得分*/
    @Excel(name = "得分", width = 15)
    @ApiModelProperty(value = "得分")
    private Double score;
    /**报名时间*/
    @Excel(name = "报名时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "报名时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date applyTime;
    /**排名*/
    @Excel(name = "排名", width = 15)
    @ApiModelProperty(value = "排名")
    private Integer rank;
    /**是否入围*/
    @Excel(name = "是否入围", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否入围")
    private java.lang.Integer isShortlisted;

    /**是否入围字段*/
    @Excel(name = "是否入围字段", width = 15)
    @ApiModelProperty(value = "是否入围字段")
    private java.lang.String isShortlisted_dictText;
    /**职工姓名*/
    @Excel(name = "职工姓名", width = 15)
    @ApiModelProperty(value = "职工姓名")
    private java.lang.String name;
    /**职工电话*/
    @Excel(name = "职工电话", width = 15)
    @ApiModelProperty(value = "职工电话")
    private java.lang.String tel;


    public ZhzfApplyApartEmployeeVo zhzfApplyApartEmployeeToZhzfApplyApartEmployeeVo(ZnzfApplyApartEmployee znzfApplyApartEmployee){
        ZhzfApplyApartEmployeeVo zhzfApplyApartEmployeeVo = new ZhzfApplyApartEmployeeVo();
        zhzfApplyApartEmployeeVo.setId(znzfApplyApartEmployee.getId());
        zhzfApplyApartEmployeeVo.setApartId(znzfApplyApartEmployee.getApartId());
        zhzfApplyApartEmployeeVo.setCreateBy(znzfApplyApartEmployee.getCreateBy());
        zhzfApplyApartEmployeeVo.setCreateTime(znzfApplyApartEmployee.getCreateTime());
        zhzfApplyApartEmployeeVo.setUpdateBy(znzfApplyApartEmployee.getUpdateBy());
        zhzfApplyApartEmployeeVo.setUpdateTime(znzfApplyApartEmployee.getUpdateTime());
        zhzfApplyApartEmployeeVo.setSysOrgCode(znzfApplyApartEmployee.getSysOrgCode());
        zhzfApplyApartEmployeeVo.setEmployeeId(znzfApplyApartEmployee.getEmployeeId());
        zhzfApplyApartEmployeeVo.setUserId(znzfApplyApartEmployee.getUserId());
        zhzfApplyApartEmployeeVo.setApartId(znzfApplyApartEmployee.getApartId());
        zhzfApplyApartEmployeeVo.setDetermineApartId(znzfApplyApartEmployee.getDetermineApartId());
        zhzfApplyApartEmployeeVo.setCheckApartId(zhzfApplyApartEmployeeVo.getCheckApartId());
        zhzfApplyApartEmployeeVo.setScore(znzfApplyApartEmployee.getScore());
        zhzfApplyApartEmployeeVo.setApplyTime(znzfApplyApartEmployee.getApplyTime());
        zhzfApplyApartEmployeeVo.setRank(znzfApplyApartEmployee.getRank());
        zhzfApplyApartEmployeeVo.setIsShortlisted(znzfApplyApartEmployee.getIsShortlisted());
        if(znzfApplyApartEmployee.getIsShortlisted() == 0)
            zhzfApplyApartEmployeeVo.setIsShortlisted_dictText("否");
        else if(znzfApplyApartEmployee.getIsShortlisted() == 1)
            zhzfApplyApartEmployeeVo.setIsShortlisted_dictText("是");
        return zhzfApplyApartEmployeeVo;
    }
}
